package com.example.spring0909.java;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.persistence.criteria.Order;

public class CustomerDemo {
    public static void main(String[] args){
    ApplicationContext applicationContext =
            new ClassPathXmlApplicationContext("META-INF/springConfig.xml");
    Customer customer = applicationContext.getBean("customer", Customer.class);
    customer.display();

//        ApplicationContext applicationContext02 =
//                new ClassPathXmlApplicationContext("META-INF/springConfig.xml");
//        Employee employee = applicationContext.getBean("emp01", Employee.class);
//        employee.show();
}
}
